using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace dotnet_ef_admin.Src.Models;

[Table("dict")]
public class Dict {
    [Key] public int Id { get; set; }

    [Column("type_code")] public string? TypeCode { get; set; }

    public string? Name { get; set; }

    public string? Value { get; set; }

    public int? Sort { get; set; } = 0;

    public int? Status { get; set; } = 1;

    public int? Defaulted { get; set; } = 1;

    public string? Remark { get; set; }

    [Column("create_time")] public DateTime? CreateTime { get; set; } = DateTime.Now;

    [Column("update_time")] public DateTime? UpdateTime { get; set; }

    public int DictTypeId { get; set; }

    public DictType DictType { get; set; } = null!;
}